<form id="add-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">
   
	<input id="c-type" name="row[type]" type="hidden" value="1">
   
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('取件人姓名')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-poster_name" data-rule="required" class="form-control" name="row[poster_name]" type="text">
        </div>
    </div>
    <div class="form-group">
        <label for="c-level_id" class="control-label col-xs-12 col-sm-2">{:__('分销商')}:</label>
        <div class="col-xs-12 col-sm-8">
            <select id="c-agent_id" data-rule="required" class="form-control selectpicker" name="row[agent_id]">
                <option value="0">平台骑手</option>
                {foreach name="agents" item="vo"}
                <option value="{$key}">{$vo}</option>
                {/foreach}
            </select>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('取件人手机号')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-mobile" data-rule="required" class="form-control" name="row[mobile]" type="text">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('学校')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-school" data-rule="required" class="form-control selectpage" data-source="main/school/index" name="row[school]" type="text">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('佣金类型')}:</label>
        <div class="col-xs-12 col-sm-8">
            {:build_radios('row[poster_type]', ['1'=>__('个数(元/个)'), '2'=>__('在线时长(元/H)')])}
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('佣金')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-brokerage_scale" data-rule="required" class="form-control" value="0" style="width: 80px" name="row[brokerage_scale]" type="number">
        </div>
    </div>
    
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('状态')}:</label>
        <div class="col-xs-12 col-sm-8">
            {:build_radios('row[status]', ['1'=>__('正常'), '0'=>__('锁定')])}
        </div>
    </div>
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-primary btn-embossed disabled">{:__('OK')}</button>
        </div>
    </div>
</form>
